﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AmieWeb.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var list = AmieLib.Models.ToDo.FromAll();
            return View(list);
        }

        public ActionResult Detail(int id)
        {
            var todo = new AmieLib.Models.ToDoModel(id);
            return View(todo);
        }
	}
}